package db8;

public class English extends Student{
    double yanjiang;
    double ftest;
    double mtest;
    public English(){

    }
    public English(int no,String name,String sex,int age,double yanjiang,double ftest,double mtest){
        super(no, name, sex, age);
        this.yanjiang=yanjiang;
        this.ftest=ftest;
        this.mtest=mtest;
    }
    public double getGrade(){
        double grade=yanjiang*0.5+ftest*0.25+mtest*0.25;
        return grade;
    }
}
